import { useMemo } from "react";

interface ISiteInfo {
    sitename: string;
    keywords: string;
    description: string;
    copyright: string;
    contactor: "";
    adminSiteNameAbbr: string;
    adminSiteNameFull: string;
}
export const useSite = (): Partial<ISiteInfo> => {
    return useMemo(() => {
        const siteText = sessionStorage.getItem("websiteConfig");
        return siteText && siteText.length > 0 ? JSON.parse(siteText) : {};
    }, []);
};
